package com.zjitc.dao;

import com.zjitc.po.User;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import sun.security.util.Password;

/**
 * Create by IntelliJ IDEA
 *
 * @author: jsonor
 * @date-Time: 2018/3/28 15:10
 * @description:
 */
public interface UsersDao {

  int checkUsername(String username);

  User findByUsernameAndPassword(@Param("username") String username, @Param("Password") String password);

  int register(User user);

  int checkEmail(String type);

  User get_User_Info(Integer id);

  String forget_get_question(String username);

  String reset_password1(Integer id);

  int reset_password2(User user);

  User get_information(Integer id);

  String reset_password3(String username);

  List<String> findAllUsername();

  List<String> findAllemail();
}
